All Databases
Inside Mac - Basic Toolbox
GetCtlValue
SetCtlValue
ControlRecord
GetCtlValue
Obtain the current setting of a control
#include <
Controls.h
>
Control Manager
short
GetCtlValue
(
theControl
);
ControlHandle
theControl
; handle of control to query
returns
control's current setting;
contrlValue
GetCtlValue
returns the current setting of a control; i.e., the value in the
contrlValue
field of its
ControlRecord
structure.
theControl
is a handle leading to a variable-length
ControlRecord
structure. It
specifies which control to query.
Returns
: a
short
; the current setting of the control.
Notes: If you stick with using
SetCtlValue
(rather than manipulating the
ControlRecord
directly), you can be certain that the return value will be
between
contrlMin
and
contrlMax
.
Referenced by (12):
GetCTitle
Running in System 7.0
SetCtlValue
Control Manager (Inside Mac - Index)
GetCTitle (Inside Mac - Basic Toolbox)
SetCtlValue (Inside Mac - Basic Toolbox)
Filter Procs (MacTech Vol 01-1984-5)
Printer Resource 2 (MacTech Vol 03-1987)
Designer CDEF (MacTech Vol 05-1989)
Feb 89 Mousehole (MacTech Vol 05-1989)
cdev Debugging (MacTech Vol 06-1990)
Print Dialogs (MacTech Vol 08-1992)